package cn.com.oceansoft.business.mobile.danger.persistence;

import cn.com.oceansoft.business.base.entity.Query;
import cn.com.oceansoft.business.mobile.danger.entity.*;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by stt on 2018/5/25.
 */
@Repository
public interface ICollecterMapper {

    List<DangerContent> loadReportResultByPage(Query query);

    CollecterInfo findByOpenid(String openId);
    void deletePic(FlowInfo flowInfo);
    Zgcs getonezgcs(String id);
    Cfcs getonecfcs(String id);
    void insertzg(Zgcs zgcs);
    void insertcf(Cfcs cfcs);

    List<DangerContent> loadListWByPage(Query query);

    List<DangerContent> loadListYByPage(Query query);

    List<DangerContent> loadListWFByPage(Query query);

    List<DangerContent> loadListYFByPage(Query query);

    int updataCollecterInfo(CollecterInfo collecterInfo);

    int addCollecterInfo(CollecterInfo collecterInfo);

    DangerContent getDangerContentById(String id);

    String getYHByCode(String type);

    FlowInfo getDangerContentByIdTime(String id);

    List<Map<String,Object>> getPhotoBytypeAndId(DangerContent dangerContent);

    FlowInfo getYFkDetail(String id);

    List<Map<String,Object>> getPhotoByDCId(String id);

    List<Map<String,Object>> getPhotoFKByDCId(String id);

    int insertFlowInfo(FlowInfo flowInfo);

    void gxflowinfozt(FlowInfo flowInfo);

    FlowInfo pdiscl(FlowInfo flowInfo);
}
